package com.example.demo.controller;

import com.example.demo.controller.req.ModelContentAddReq;
import com.example.demo.service.ModelService;
import org.noear.solon.annotation.*;
import org.noear.solon.validation.annotation.Validated;

/**
 * @author airhead
 */
//@Api(tags = {"模型服务"})
@Controller
@Mapping("/model")
public class ModelController {
    @Inject
    private ModelService service;

    //    @ApiOperation("添加")
    @Post
    @Mapping("add")
    public Boolean add(@Body @Validated ModelContentAddReq modelContentAddReq) {
        return service.add(modelContentAddReq);
    }

    @Post
    @Mapping("list")
    public Object list(@Param("modelId") String modelId) {
        return modelId;
    }

}
